﻿// Copyright (c) 2014 Converter Systems LLC

using Microsoft.Practices.Prism.Mvvm;
using Microsoft.Practices.Prism.Regions;
using System;

namespace ConverterSystems.Workstation.Infrastructure
{
    /// <summary>
    /// A base type for view models. Implements INotifyPropertyChanged and INavigationAware.
    /// </summary>

    public class NavigationViewModelBase : BindableBase, INavigationAware
    {
        public virtual bool IsNavigationTarget(NavigationContext navigationContext)
        {
            return true;
        }

        public virtual void OnNavigatedFrom(NavigationContext navigationContext)
        {
        }

        public virtual void OnNavigatedTo(NavigationContext navigationContext)
        {
        }
    }
}